#include <stdio.h>
#include <stdlib.h>

void printerror(unsigned int val){
	// 0-20 : builtins
	// 20-30: conditionals
	char* errors[] = {"\nError: addition requires two ints\n",									//0
										"\nError: subtraction requires two ints or floats\n",							//1
										"\nError: multiplication requires two ints or floats\n",						//2
										"\nError: Division requires two ints or floats\n",									//3
										"\nError: Less Than requires two ints or floats\n",								//4
										"\nError: Greater Than requires two ints or floats\n",						//5
										"\nError: Less Than or Equal requires two ints or floats\n",			//6
										"\nError: Greater Than or Equal requires two ints or floats\n",		//7
										"\nError: And requires two booleans\n",								//8
										"\nError: Or requires two booleans\n",								   //9
										"\nError: Not reuqires a boolean\n",		//10
										"\nError: ERROR NOT SET\n",											 		   //11
										"\nError: ERROR NOT SET\n",											 		   //12
										"\nError: ERROR NOT SET\n",											 		   //13
										"\nError: ERROR NOT SET\n",											 		   //14
										"\nError: ERROR NOT SET\n",											 		   //15
										"\nError: ERROR NOT SET\n",											 		   //16
										"\nError: ERROR NOT SET\n",											 		   //17
										"\nError: ERROR NOT SET\n",											 		   //18
										"\nError: Called A function with this as a non-member function\n",											 		   //19
										"\nError: If requires a Boolean guard\n",								//20
										"\nError: While requires a boolean guard\n",											 		   //21
										"\nError: ERROR NOT SET\n",											 		   //22
										"\nError: ERROR NOT SET\n",											 		   //23
										"\nError: ERROR NOT SET\n",											 		   //24
										"\nError: ERROR NOT SET\n",											 		   //25
										"\nError: ERROR NOT SET\n",											 		   //26
										"\nError: ERROR NOT SET\n",											 		   //27
										"\nError: ERROR NOT SET\n",											 		   //28
										"\nError: ERROR NOT SET\n",											 		   //29
										"\nError: Function called with the wrong number of arguments!\n",											 		   //30
										"\nError: Non existant function called!\n",											 		   //31
										"\nError: Non function used as function!\n",											 		   //32
										"\nError: Method called with the wrong number of arguments!\n",											 		   //33
										"\nError: Non existant function called!\n",											 		   //34
										"\nError: Non function used as method!\n"											 		   //35
									 };
	printf("---------------------------------------%s", errors[val]);
	printf("---------------------------------------\n");
	exit(1);
}
